<template>
  <el-pagination
    :page-size="querryParmas.pagesize"
    layout="total, prev, pager, next"
    :total="totalTable"
    :current-page="querryParmas.page"
    @current-change="handleCurrentChange"
  />
</template>

<script>
export default {
  props: {
    querryParmas: {
      type: Object,
      default: null
    },
    totalTable: {
      type: Number,
      default: 1
    }
  },
  methods: {
    // 页码切换时所用到的组件
    handleCurrentChange(val) {
      this.$emit('CurrentChange', val)
    }
  }
}
</script>

<style>

</style>
